IF exists (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[SelectLogServicio]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[SelectLogServicio]
GO

CREATE PROCEDURE [dbo].[SelectLogServicio]
(
	@IdLog int
)
AS
BEGIN
	SET NOCOUNT ON

	SELECT
	[IdLog],
	[IdTipo],
	[FechaAlerta],
	[IdLote],
	[IdInsumo],
	[Descripcion],
	[FechaCreacion],
	[IdEstado]
	FROM [LogServicio]
	WHERE [IdLog] = @IdLog

	SET NOCOUNT OFF
END

GO
